# -*- coding: utf-8 -*-
from google.appengine.ext import zipserve
from mainpage import MainPage
from mainpage import InitData
from mainpage import Login
from mainpage import Logout
from mainpage import GetMenu
from mainpage import GetMilk

'''urls用于配置路由'''
urls = [('/ext/resources/(.*)', zipserve.make_zip_handler('static_files/ext-resources.zip')),
        ('/ext/docs/(.*)', zipserve.make_zip_handler('static_files/ext-docs.zip')),
        ('/ext/(.*)', zipserve.make_zip_handler('static_files/ext-js.zip')),
        ('/images/(.*)', zipserve.make_zip_handler('static_files/images.zip')),
        ('/', MainPage),
        ('/init', InitData),
        ('/menu/.*', GetMenu),
        ('/milks/.*', GetMilk),
        ('/login', Login),
        ('/logout', Logout)]